package com.gientech.customercenter.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gientech.customercenter.entity.Customer;
import com.gientech.customercenter.repository.CustomerMapper;
import com.gientech.customercenter.service.CustomerService;
import com.gientech.loancommon.vo.ResponseResult;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Override
    public ResponseResult customerRegister(Customer customer) {
        customer.setCreateTime(new Date());
        this.save(customer);
        return new ResponseResult();
    }
}
